import request from '@/utils/request'

// 查询运营部门日志记录结果列表
export function listOperationdailyResult(query) {
  return request({
    url: '/operation/operationdailyResult/list',
    method: 'get',
    params: query
  })
}

export function generateOperationdailyResult(data) {
  return request({
    url: '/operation/operationdailyResult/generate',
    method: 'post',
    data: data
  })
}
// 查询运营部门日志记录结果详细
export function getOperationdailyResult(id) {
  return request({
    url: '/operation/operationdailyResult/' + id,
    method: 'get'
  })
}

// 新增运营部门日志记录结果
export function addOperationdailyResult(data) {
  return request({
    url: '/operation/operationdailyResult',
    method: 'post',
    data: data
  })
}

// 修改运营部门日志记录结果
export function updateOperationdailyResult(data) {
  return request({
    url: '/operation/operationdailyResult',
    method: 'put',
    data: data
  })
}

// 删除运营部门日志记录结果
export function delOperationdailyResult(id) {
  return request({
    url: '/operation/operationdailyResult/' + id,
    method: 'delete'
  })
}

export function finishWork(id){
  return request({
    url: '/operation/operationdailyResult/finishWork/'+id,
    method: 'post',
  })
}export function failWork(data){
  return request({
    url: '/operation/operationdailyResult/failWork',
    method: 'post',
    data:data,
  })
}
